public class Test {
    public static void main(String[] args) {
//        Student student = new Student();
        Student[] students = new Student[20];
        for (int i = 0; i < 20; i++) {
            Student student = new Student();
            student.random();
            students[i] = student;
            System.out.println("学号：" + students[i].number + "\t年级：" + students[i].state + "\t分数：" + students[i].score);
        }
        System.out.println(students[0].score);
    }
}
